using System;
using System.Data;
using System.Xml;
using OR.Reuse.Persistence;

namespace OR.Lazarus.Library.DataTier.Compiled
{
   public class MethodDetail : OR.Lazarus.Library.DataTier.Compiled.Lazarus.MethodDetail
   {
      private bool mReturnResultSet;

      public bool ReturnResultSet
      {
         get { return mReturnResultSet; }
         set { mReturnResultSet = value; }
      }

      public override void LoadXml( XmlElement pSource )
      {
         base.LoadXml( pSource );

         mReturnResultSet = DataUtility.GetBool( pSource, "return-result", false );
      }

      public override XmlElement SaveXml( XmlDocument p_docContext )
      {
         XmlElement vReturn = base.SaveXml( p_docContext );

         vReturn.SetAttribute( "return-result", mReturnResultSet.ToString() );

         return ( vReturn );
      }

   }
}
   